package com.colorfruit.admin.business.dao;

import com.colorfruit.admin.pojo.entity.PurchaseTotalAddressInfo;
import com.colorfruit.admin.pojo.vo.purchase.PurchaseTotalAddressInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurchaseTotalAddressInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PurchaseTotalAddressInfo record);

    int insertSelective(PurchaseTotalAddressInfo record);

    PurchaseTotalAddressInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PurchaseTotalAddressInfo record);

    int updateByPrimaryKey(PurchaseTotalAddressInfo record);

    List<PurchaseTotalAddressInfoVo> selectTotalAddressList(@Param("globalControlId") Long globalControlId);

    int updateTransportNum(@Param("id") Long id,
                           @Param("num")Integer num);
}